from cryptography.fernet import Fernet

key = Fernet.generate_key()
cipher = Fernet(key)
password="password"
encrypted_pwd = cipher.encrypt(password.encode('utf-8')) 
decrypted_pwd = cipher.decrypt(encrypted_pwd)
print (encrypted_pwd)
print (decrypted_pwd)

print (encrypted_pwd.decode('utf-8'))
print (decrypted_pwd.decode('utf-8'))



